﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Problema1
{
    public sealed class mySingletone
    {
        private static mySingletone instanta;
        private mySingletone()
        {
            colectieClienti = new PoolPersoane();
        }
        public static mySingletone vars
        {
            get
            {
                if (instanta == null)
                    instanta = new mySingletone();
                return instanta;
            }
        }
        private PoolPersoane colectieClienti;
        public PoolPersoane Clienti
        {
            get
            {
                return colectieClienti;
            }
            set
            {
                colectieClienti = value;
            }
        }
    }
}
